package pw.archipelag.loaderGame.interfaceGame.skinsPanel {
	import flash.text.TextFormat;
	import flash.text.TextField;
	import com.greensock.TweenMax;

	public class SkinTf extends Object {
		
		public var tFormat: TextFormat;
		public var objTween: Object;
		
		public function SkinTf(tFormat: TextFormat = null, objTween: Object = null): void {
			this.tFormat = tFormat || new TextFormat("HelveticaNeueLTPro-Roman", 14, 0x222222);
			this.objTween = objTween || {};
		}
		
		public function drawToTf(tf: * /*TextField*/, changeSize: int = 0): void {
			var baseSize: uint = uint(this.tFormat.size);
			this.tFormat.size = baseSize + changeSize;
			tf.defaultTextFormat = this.tFormat;
			tf.setTextFormat(this.tFormat);
			this.tFormat.size = baseSize;
			TweenMax.to(tf, 0, this.objTween);
		}
		
	}

}